package qiu.Fruit;

public class FruitTest {

    public static void main(String[] args) {

        Fruit fruit = new Fruit();
        Apple apple = new Apple();
        Banana banana = new Banana();
        Peach peach = new Peach();

        fruit.setName("昭通苹果");
        apple.setArea("昭通");
        apple.setPrice(2);

        banana.setName("广州香蕉");
        banana.setArea("广州");
        banana.setPrice(3);

        peach.setName("桃子");
        peach.setArea("云南");


        System.out.println(apple.getName() + "的产地：" + banana.getArea() + "价格：" + banana.getPrice());
        System.out.println(banana.getName() + "的产地：" + banana.getArea() + "价格：" + banana.getPrice());
        System.out.println();

    }

}
